If tab focus falls off the end, and we have an empty headerbar,
we end up with window->focus == NULL. Don't let that happen
if (old_focus_child)
{
if (gtk_widget_child_focus (old_focus_child, direction))
- return TRUE;
+ return TRUE;
}
if (priv->focus_widget)
priv->title_box != child &&
gtk_widget_child_focus (priv->title_box, direction))
return TRUE;
-
+ else if (priv->title_box == child &&
+ gtk_widget_child_focus (gtk_bin_get_child (bin), direction))
+ return TRUE;
}
return FALSE;